import request from '@/utils/request'

//统一字典下拉框查询
export function adminDict(params) {
    return request({
        url: `common/v1/adminDict`,
        params
    })
}

//查询积分详情列表
export function integralList(params) {   
    return request({
        url: `/integral/record/v1/list`,
        method: 'get',
        params
    })
}

//查询积分记录统计
export function integralStatistics() {
    return request({
        url: `/integral/record/v1/statistics`,
        method: 'get',
    })
}

// 停止兑换
export function stopExchange(id) {
    return request({
        url: `/integral/exchange/config/v1/stopExchange/${id}`,
        method: 'POST',
    })
}
//中台 积分兑换配置列表
export function recordList(params) {   
    return request({
        url: `/integral/exchange/config/v1/record/list`,
        method: 'get',
        params
    })
}
